﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Abonents.aspx.cs" Inherits="Default2" Title="Абоненты АТЛАС" %>

<asp:Content ID="Abonents" ContentPlaceHolderID="MainContent" Runat="Server">
    <div id="abonents-left">
        <asp:CheckBox ID="cbxFilter" runat="server" AutoPostBack="True" Font-Bold="True"
            OnCheckedChanged="cbxFilter_CheckedChanged" Text="Фильтр вкл." Width="120px" />
        <asp:Label ID="Label1" runat="server" Font-Size="Small" Text="Псевдоним:"></asp:Label>
        <asp:TextBox ID="tbxSurname" runat="server" Width="120px" Enabled="False"></asp:TextBox>
        <asp:Label ID="Label4" runat="server" Font-Size="Small" Text="Адрес Х.121:"></asp:Label>
        <asp:TextBox ID="tbxAdress121" runat="server" Width="120px" Enabled="False"></asp:TextBox>
        <asp:Label ID="Label2" runat="server" Font-Size="Small" Text="Город:"></asp:Label>
        <asp:TextBox ID="tbxCity" runat="server" Width="120px" Enabled="False"></asp:TextBox>
        <br/>
        <asp:Label ID="Label5" runat="server" Font-Size="Small" Text="Кросс:"></asp:Label>
        <asp:TextBox ID="tbxKross" runat="server" Width="120px" Enabled="False"></asp:TextBox>
        <asp:Label ID="Label6" runat="server" Font-Size="Small" Text="Гребенка:"></asp:Label>
        <asp:TextBox ID="tbxGrebenka" runat="server" Width="120px" Enabled="False"></asp:TextBox>
        <asp:Label ID="Label7" runat="server" Font-Size="Small" Text="Модем:"></asp:Label>
        <asp:TextBox ID="tbxModem" runat="server" Width="120px" Enabled="False"></asp:TextBox>
        <br/>
        <asp:Label ID="Label8" runat="server" Font-Size="Small" Text="Телефон:"></asp:Label>
        <asp:TextBox ID="tbxTelefon" runat="server" Width="120px" Enabled="False"></asp:TextBox>
        <asp:Label ID="Label3" runat="server" Text="Выбрано: все"></asp:Label>
        <asp:Button ID="btnFilterApply" runat="server" Enabled="False" OnClick="btnFilterApply_Click"
            Text="Применить" Width="120px" />
    </div>
    <div id="abonents-right">
    <asp:GridView ID="gvApAtlas" runat="server" CellPadding="4" ForeColor="#333333" 
    GridLines="None" AutoGenerateColumns="False" DataSourceID="dsApAtlas" 
    AllowPaging="True" AllowSorting="True" CellSpacing="1" PageSize="20" 
            EnableTheming="False" Font-Size="Small" 
            onselectedindexchanged="gvApAtlas_SelectedIndexChanged">
    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <RowStyle BackColor="#EFF3FB" />
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="kod,surname" 
                DataNavigateUrlFormatString="~\abonent-details.aspx?kod={0}&amp;surname={1}" 
                Text="&gt;&gt;&gt;" DataTextField="surname" HeaderText="Псевдоним">
                <ControlStyle ForeColor="Black" Font-Bold="False" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="address_x_121" HeaderText="Сет. адрес" 
                SortExpression="address_x_121" />
            <asp:BoundField DataField="city" HeaderText="Город" SortExpression="city" />
            <asp:BoundField DataField="kross" HeaderText="Кросс" SortExpression="kross" />
            <asp:BoundField DataField="grebenka" HeaderText="Гребенка" SortExpression="grebenka" />
            <asp:BoundField DataField="modem" HeaderText="Модем" SortExpression="modem" />
            <asp:BoundField DataField="telefon" HeaderText="Телефон" SortExpression="telefon" />
            <asp:BoundField DataField="information" HeaderText="Информация" 
                SortExpression="information" />
        </Columns>
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <EditRowStyle BackColor="#2461BF" />
    <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
    </div>
    <asp:SqlDataSource ID="dsApAtlas" runat="server" ConnectionString="Data Source=195.0.0.102;Initial Catalog=atlas;User ID=atlas;Password=atlas-atlas;Connect Timeout=30"
        OnSelected="dsApAtlas_Selected" 
    SelectCommand="SELECT * FROM [apspdatlas]" 
    ProviderName="<%$ ConnectionStrings:AtlasDB.ProviderName %>"></asp:SqlDataSource>
    </asp:Content>

